#include <iostream>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

using namespace std;

int main(int argc, char **argv)
{
    FILE *fp = fopen("/devlops/abc.txt", "r");
    if (fp == NULL)
    {
        perror("open file error");
        exit(1);
    }
    int c = fgetc(fp);
    printf("%c",c);
    // fseek(fp,0,SEEK_CUR)
    c = fgetc(fp);
    printf("%c",c);
    // fseek(fp,0,SEEK_CUR);
    c = fgetc(fp);
    printf("%c",c);

    fflush(NULL);

    fclose(fp);
    

    return 0;
}